//
//  WBNetworkManager+Extension.swift
//  Swift微博练习
//
//  Created by 练锦波 on 2017/3/16.
//  Copyright © 2017年 练锦波. All rights reserved.
//

import Foundation

// MARK:- 封装新浪微博的网络请求方法
extension WBNetworkManager{
    
    
    func statuList(completion: @escaping (_ list: [[String: Any]]?, _ isSeccess: Bool)->()) {
        let urlString = "https://api.weibo.com/2/statuses/home_timeline.json"
//        let params = ["":""]
        tokenRequest(URLString: urlString, parameters: nil) { (json, isSuccess) in
            
            let jsonDic = json as? [String: Any]
            let result = jsonDic?["statuses"] as? [[String: Any]]
            completion(result, isSuccess)
        }
    }
}

 
